This circuit exploits the temperature sensitivity of transistors to sense thermal balance between the two resistors R1 and R2. By definition, whatever DC voltage produces the same heat dissipation in a given resistance as an AC voltage is the RMS value of that AC voltage.